using System;
using System.Collections;
using Curriculum.Modelo.Clases;
using Curriculum.DataAccess.Server;
using Curriculum.Db4oHttpModule;
using System.Web;
using Db4objects;

namespace Curriculum.Services
{
	/// <summary>
	/// Summary description for RolGenericoService.
	/// </summary>
	public class RolGenericoService: ServiceBase
	{
		public RolGenericoService()
		{
			//
			// TODO: Add constructor logic here
			//
		}

		
		#region Overrides
		protected override Type GetMyObjectType()
		{
			return typeof(RolGenerico);
		}
		#endregion

		public RolGenerico ObtenerRolGenerico(object rolId)
		{
			return base.ObtenerObjetoPorId(typeof(RolGenerico), rolId.ToString()) as RolGenerico;
		}

		public IList GetRolGenerico(string apellido, string nombre)
		{
			return dataManager.GetRolGenericoLike(nombre, apellido);			
		}

		public object CrearRolGenerico(RolGenerico rol)
		{
			return base.Crear(rol);
		}
	
		public object ModificarRolGenerico(RolGenerico rol)
		{
			return base.Modificar(rol);
		}
	
		public void EliminarRolGenerico(object rolId)
		{
			base.Eliminar(typeof(RolGenerico), rolId);
		}

	}
}
